import request from '@/utils/request'

// 查询安检检查指标项列表
export function listItem(query) {
  return request({
    url: '/labsafety/labSafetyCheckRefIndexItem/list',
    method: 'get',
    params: query
  })
}

// 查询安检检查指标项详细
export function getItem(id) {
  return request({
    url: '/labsafety/labSafetyCheckRefIndexItem/' + id,
    method: 'get'
  })
}

// 新增安检检查指标项
export function addItem(data) {
  return request({
    url: '/labsafety/labSafetyCheckRefIndexItem',
    method: 'post',
    data: data
  })
}

// 修改安检检查指标项
export function updateItem(data) {
  return request({
    url: '/labsafety/labSafetyCheckRefIndexItem',
    method: 'put',
    data: data
  })
}

// 修改安检检查指标项
export function updateItemStatus(data) {
  return request({
    url: '/labsafety/labSafetyCheckRefIndexItem/status',
    method: 'put',
    data: data
  })
}

// 删除安检检查指标项
export function delItem(id) {
  return request({
    url: '/labsafety/labSafetyCheckRefIndexItem/' + id,
    method: 'delete'
  })
}

// 导出安检检查指标项
export function exportItem(query) {
  return request({
    url: '/labsafety/labSafetyCheckRefIndexItem/export',
    method: 'get',
    params: query
  })
}